class LoginEntity {
  int uid;
  String email;
  String phone;
  String accessToken;
  int invalidTime;
  String logintime;
  int rid;
  String picUrl;
  String nick;
  String shopName;

  LoginEntity({this.uid,
    this.email,
    this.phone,
    this.accessToken,
    this.invalidTime,
    this.logintime,
    this.rid,
    this.picUrl,
    this.nick,
    this.shopName});

  LoginEntity.fromJson(Map<String, dynamic> json) {
    uid = json['uid'];
    email = json['email'];
    phone = json['phone'];
    accessToken = json['access_token'];
    invalidTime = json['invalid_time'];
    logintime = json['logintime'];
    rid = json['rid'];
    picUrl = json['pic_url'];
    nick = json['nick'];
    shopName = json['shop_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['uid'] = this.uid;
    data['email'] = this.email;
    data['phone'] = this.phone;
    data['access_token'] = this.accessToken;
    data['invalid_time'] = this.invalidTime;
    data['logintime'] = this.logintime;
    data['rid'] = this.rid;
    data['pic_url'] = this.picUrl;
    data['nick'] = this.nick;
    data['shop_name'] = this.shopName;
    return data;
  }
}